package com.bh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.order.domain.JcLedReceivingParty;
import com.bh.order.dto.JcLedReceivingPartyVo;

import java.util.List;

/**
 * 分段订单收发货方Service接口
 *
 * @author slx
 * @date 2023-04-24
 */
public interface IJcLedReceivingpartyService extends IService<JcLedReceivingParty> {
    /**
     * 查询分段订单收发货方
     *
     * @param id 分段订单收发货方主键
     * @return 分段订单收发货方
     */
    public JcLedReceivingParty selectJcLedReceivingpartyById(Long id);

    /**
     * 查询分段订单收发货方列表
     *
     * @param jcLedReceivingparty 分段订单收发货方
     * @return 分段订单收发货方集合
     */
    public List<JcLedReceivingParty> selectJcLedReceivingpartyList(JcLedReceivingParty jcLedReceivingparty);

    /**
     * 查询分段订单收发货方列表
     * @param ledId
     * @return
     */
    public List<JcLedReceivingParty> selectJcLedReceivingPartyListByLedId(Long ledId);


    /**
     * 查询分段订单收发货方列表
     * @param ledId
     * @return
     */
    public JcLedReceivingParty selectJcLedReceivingPartyListByLedIdAndType(Long ledId, String type);

    /**
     * 新增分段订单收发货方
     *
     * @param jcLedReceivingparty 分段订单收发货方
     * @return 结果
     */
    public int insertJcLedReceivingparty(JcLedReceivingParty jcLedReceivingparty);

    /**
     * 修改分段订单收发货方
     *
     * @param jcLedReceivingparty 分段订单收发货方
     * @return 结果
     */
    public int updateJcLedReceivingparty(JcLedReceivingParty jcLedReceivingparty);

    /**
     * 批量删除分段订单收发货方
     *
     * @param ids 需要删除的分段订单收发货方主键集合
     * @return 结果
     */
    public int deleteJcLedReceivingpartyByIds(Long[] ids);

    /**
     * 删除分段订单收发货方信息
     *
     * @param id 分段订单收发货方主键
     * @return 结果
     */
    public int deleteJcLedReceivingpartyById(Long id);


    public List<JcLedReceivingPartyVo> selectAddressInfo(Long shipmentId);
}
